# -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 15:13:12 2017

@author: qiang.qian
"""

def count():
    fs = []
    for i in range(1, 4):
        def g(j):
            def f():
                return j*j
            return f
        fs.append(g(i))
    return fs

f1, f2, f3 = count() 